<form action="{$base_url}&action=gallery_save" method="post">
	<input type="hidden" id="gallery[id]" name="gallery[id]" value="{$gallery->id}" />
	<td>
		<input type="reset" class="cancel" rel="{$gallery->id}" value="" />
	</td>
	<td>
		<select id="gallery[owner]" name="gallery[owner]">
			<option value="0">- Выбрать -</option>
			{foreach $users as $user}
				<option{if $user->id == $gallery->owner} selected="selected"{/if} value="{$user->id}">{$user->login}</option>
			{/foreach}
		</select>
	</td>
	<td>
		<input type="text" id="gallery[title]" name="gallery[title]" value="{$gallery->title}" />
	</td>
	<td>
		<textarea id="gallery[description]" name="gallery[description]" cols="30" rows="10">{$gallery->description}</textarea>
	</td>
	<td>
		<input type="submit" class="save" value="" />
	</td>
</form>